﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClientApplication
{
    public class FirstServiceProxyUnity : IFirstServiceProxyUnity
    {
        public string CallHelloWorld()
        {
            FirstService.FirstServiceSoapClient fs = new FirstService.FirstServiceSoapClient();
            string result = fs.HelloWorld();
            fs.Close();
            return result;
        }

        public string CallUnstableHelloWorld()
        {
            FirstService.FirstServiceSoapClient fs = new FirstService.FirstServiceSoapClient();
            string result = fs.UnstableHelloWorld();
            fs.Close();
            return result;
        }

        public string CallSlowHelloWorld()
        {
            FirstService.FirstServiceSoapClient fs = new FirstService.FirstServiceSoapClient();
            string result = fs.SlowHelloWorld();
            fs.Close();
            return result;
        }

        public string CallSlowerHelloWorld()
        {
            FirstService.FirstServiceSoapClient fs = new FirstService.FirstServiceSoapClient();
            string result = fs.SlowerHelloWorld();
            fs.Close();
            return result;
        }

        public string CallFailingHelloWorld()
        {
            FirstService.FirstServiceSoapClient fs = new FirstService.FirstServiceSoapClient();
            string result = fs.FailingHelloWorld();
            fs.Close();
            return result;
        }
    }
}
